package com.meixiang.fragment.service;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.meixiang.R;

/**
 * 预约内的美容师详情
 * xiejingwen
 */
public class CosmetologistDetailFragment extends BaseViewPagerFragment{

    private String count="0";
    public static CosmetologistDetailFragment getInstance(String count){
        CosmetologistDetailFragment fragment=new CosmetologistDetailFragment();
        Bundle bundle=new Bundle();
        bundle.putString("count",count);
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    protected String[] getTitles() {
        return new String[]{"个人资料","擅长服务","评价("+count+")"};
    }

    @Override
    protected Fragment[] getFragments() {
        return new Fragment[]{new PersonalDataFragment(),new GoodAtServiceFragment(),new EvaluationFragment()};
    }

    @Override
    protected int ColorStyle() {
        return R.color.green_tab;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        count=getArguments().getString("count");
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        setTextSize(16);
        setNormalTextColor(R.color.service_text_black);
        return super.onCreateView(inflater, container, savedInstanceState);
    }
}
